package com.zealsinger.nacos.learn.phonerepairfontbacken.controller;


import com.zealsinger.nacos.learn.phonerepairfontbacken.baseResponse.Response;
import com.zealsinger.nacos.learn.phonerepairfontbacken.service.LoginService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

/**
 * @author ZealSinger
 * @data 2025/09/12
 * @description 测试接口
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Resource
    private LoginService loginService;

    @GetMapping("/checkResponse")
    private Response<String> checkLogin() {
        return Response.success();
    }

    @GetMapping("/login")
    private Response<String> login(@RequestParam("username") String username, @RequestParam("password") String password) {
        return Response.success(username + "$$" + password);
    }
}
